
    /**  
    * @Title: TcpConfig.java
    * @Package com.efast.cafe.commponent.es.tcp.properties
    * @Description: TODO(用一句话描述该文件做什么)
    * @author Administrator
    * @date 2019年6月21日
    * @version V1.0  
    */
    
package com.efast.cafe.commponent.es.tcp.properties;

import java.util.List;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConditionalOnProperty(
        name="tcp.enable",
        havingValue="true"
)
@Component
@ConfigurationProperties(prefix = "tcp")    
public class TcpConfig {

	private List<String> handlerPackage;
	
	private Integer port;
	
	private Integer connectLoop;
	
	private Integer procLoop;

	public List<String> getHandlerPackage() {
		return handlerPackage;
	}

	public void setHandlerPackage(List<String> handlerPackage) {
		this.handlerPackage = handlerPackage;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public Integer getConnectLoop() {
		return connectLoop;
	}

	public void setConnectLoop(Integer connectLoop) {
		this.connectLoop = connectLoop;
	}

	public Integer getProcLoop() {
		return procLoop;
	}

	public void setProcLoop(Integer procLoop) {
		this.procLoop = procLoop;
	}
	
	
	
	
	
}
